﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AussieAuto.DataAccess;
using AussieAuto.BusinessLogic;

namespace AussieAuto.BusinessLogic
{
    public class CustomerLogic
    {

        AussieAutoBusinessEntities entityContext { get; set; }

        public bool saveCustomer(Customer customer)
        {
            bool result = false;
            try
            {
                entityContext.AddToCustomers(customer);
                result = true;
                entityContext.SaveChanges();
            }
            catch (Exception ex)
            {

                //TO DO: INSERT LOGGING 

            }
            return result;
        }
    }
}
